package com.tengol.course.spring.boot.boot01.listener;

import com.alibaba.fastjson.JSON;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * HelloApplicationRunner
 *
 * @author dongrui
 * @date 2020/05/17
 */
@Component
public class HelloApplicationRunner implements ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        System.out.println("==== HelloApplicationRunner.run() ....");
        System.out.println(JSON.toJSONString(args));
    }
}
